cmake_minimum_required(VERSION 3.4.1)


add_library( # Sets the name of the library.
        usbcamera-lib

        # Sets the library as a shared library.
        SHARED

        # Provides a relative path to your source file(s).
        src/main/cpp/libyuv.c
        src/main/cpp/ImageProc.c
)



find_library( # Sets the name of the path variable.
        log-lib

        log)
find_library( # Sets the name of the path variable.
        g-lib


        jnigraphics)



target_link_libraries( # Specifies the target library.
        usbcamera-lib


        ${log-lib})
target_link_libraries( # Specifies the target library.
        usbcamera-lib


        ${g-lib})